﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo1
{
    class NPCshop:NPC
    {
        private string shopInfo;
        public NPCshop(string name, NPCtype type, string shopInfo):base(name,type) 
        {
            this.shopInfo = shopInfo;
        }
        public override void Speak()
        {
            Console.WriteLine("你好！欢迎来到商务NPC！");
            Console.WriteLine("我是{0},物品:{1}", base.Name, this.shopInfo);
        }
    }
}
